<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>失物招领管理系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/echarts/5.5.0/echarts.min.js"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#3B82F6',
                        secondary: '#10B981'
                    },
                    borderRadius: {
                        'none': '0px',
                        'sm': '2px',
                        DEFAULT: '4px',
                        'md': '8px',
                        'lg': '12px',
                        'xl': '16px',
                        '2xl': '20px',
                        '3xl': '24px',
                        'full': '9999px',
                        'button': '4px'
                    }
                }
            }
        }
    </script>
    <style>
        i {
            display: flex;
            justify-content: center;
            align-items: center;
        }
        body {
            font-family: 'Inter', sans-serif;
        }
        .sidebar-item.active {
            background-color: #EFF6FF;
            color: #3B82F6;
            border-left: 4px solid #3B82F6;
        }
        .sidebar-item:hover:not(.active) {
            background-color: #F9FAFB;
        }
        .table-row:hover {
            background-color: #F9FAFB;
        }
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            -moz-appearance: textfield;
        }
    </style>
</head>
<body class="min-h-[1024px] bg-gray-50 flex">
    <!-- 左侧导航栏 -->
    <div class="w-64 bg-white shadow-md fixed h-full">
        <div class="p-4 border-b border-gray-200">
            <div class="flex items-center space-x-2">
                <div class="text-2xl font-['Pacifico'] text-primary">logo</div>
                <div class="text-lg font-semibold">失物招领管理系统</div>
            </div>
        </div>
        <nav class="mt-4">
            <div class="px-4 py-3 sidebar-item active">
                <div class="flex items-center space-x-3">
                    <i class="fas fa-users w-5 h-5"></i>
                    <span>用户管理</span>
                </div>
            </div>
            <div class="px-4 py-3 sidebar-item">
                <div class="flex items-center space-x-3">
                    <i class="fas fa-box-open w-5 h-5"></i>
                    <span>失物管理</span>
                </div>
            </div>
            <div class="px-4 py-3 sidebar-item">
                <div class="flex items-center space-x-3">
                    <i class="fas fa-chart-bar w-5 h-5"></i>
                    <span>统计报表</span>
                </div>
            </div>
        </nav>
    </div>

    <!-- 主内容区域 -->
    <div class="flex-1 ml-64">
        <!-- 顶部标题栏 -->
        <header class="bg-white shadow-sm py-3 px-6 flex justify-between items-center sticky top-0 z-10">
            <div class="text-lg font-medium">用户管理</div>
            <div class="flex items-center space-x-4">
                <div class="flex items-center space-x-2">
                    <div class="w-8 h-8 rounded-full bg-primary text-white flex items-center justify-center">
                        <i class="fas fa-user w-4 h-4"></i>
                    </div>
                    <span class="font-medium">管理员</span>
                </div>
                <button class="text-gray-500 hover:text-gray-700">
                    <i class="fas fa-sign-out-alt w-5 h-5"></i>
                </button>
            </div>
        </header>

        <!-- 用户管理内容 -->
        <main class="p-6">
            <!-- 搜索和筛选区域 -->
            <div class="bg-white rounded-lg shadow-sm p-4 mb-6">
                <div class="flex items-center space-x-4">
                    <div class="relative flex-1">
                        <input type="text" placeholder="搜索用户名、手机号..." 
                               class="w-full pl-10 pr-4 py-2 border border-gray-300 rounded-button focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary">
                        <i class="fas fa-search w-5 h-5 absolute left-3 top-2 text-gray-400"></i>
                    </div>
                    <select class="border border-gray-300 rounded-button px-4 py-2 focus:outline-none focus:ring-2 focus:ring-primary focus:border-primary">
                        <option>全部用户</option>
                        <option>正常用户</option>
                        <option>已封禁</option>
                    </select>
                    <button class="bg-primary text-white px-4 py-2 rounded-button hover:bg-blue-600 whitespace-nowrap">
                        <i class="fas fa-filter w-4 h-4 mr-2"></i>
                        筛选
                    </button>
                </div>
            </div>

            <!-- 用户列表表格 -->
            <div class="bg-white rounded-lg shadow-sm overflow-hidden">
                <div class="overflow-x-auto">
                    <table class="min-w-full divide-y divide-gray-200">
                        <thead class="bg-gray-50">
                            <tr>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-primary rounded-button border-gray-300 focus:ring-primary">
                                        <span class="ml-2">用户ID</span>
                                    </div>
                                </th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">用户名</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">手机号</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">注册时间</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">状态</th>
                                <th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">操作</th>
                            </tr>
                        </thead>
                        <tbody class="bg-white divide-y divide-gray-200">
                            <tr class="table-row">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-primary rounded-button border-gray-300 focus:ring-primary">
                                        <span class="ml-2">10001</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-gray-200 flex items-center justify-center">
                                            <i class="fas fa-user w-5 h-5 text-gray-500"></i>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">张明远</div>
                                            <div class="text-sm text-gray-500">zhangmingyuan@example.com</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">138****1234</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-05-12</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">正常</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-blue-700 mr-3">详情</button>
                                    <button class="text-red-500 hover:text-red-700">封禁</button>
                                </td>
                            </tr>
                            <tr class="table-row">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-primary rounded-button border-gray-300 focus:ring-primary">
                                        <span class="ml-2">10002</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-gray-200 flex items-center justify-center">
                                            <i class="fas fa-user w-5 h-5 text-gray-500"></i>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">李思雨</div>
                                            <div class="text-sm text-gray-500">lisiyu@example.com</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">159****5678</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-06-18</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">正常</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-blue-700 mr-3">详情</button>
                                    <button class="text-red-500 hover:text-red-700">封禁</button>
                                </td>
                            </tr>
                            <tr class="table-row">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-primary rounded-button border-gray-300 focus:ring-primary">
                                        <span class="ml-2">10003</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-gray-200 flex items-center justify-center">
                                            <i class="fas fa-user w-5 h-5 text-gray-500"></i>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">王建国</div>
                                            <div class="text-sm text-gray-500">wangjianguo@example.com</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">186****9012</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-07-22</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-red-100 text-red-800">已封禁</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-blue-700 mr-3">详情</button>
                                    <button class="text-green-600 hover:text-green-800">解封</button>
                                </td>
                            </tr>
                            <tr class="table-row">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-primary rounded-button border-gray-300 focus:ring-primary">
                                        <span class="ml-2">10004</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-gray-200 flex items-center justify-center">
                                            <i class="fas fa-user w-5 h-5 text-gray-500"></i>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">陈晓雯</div>
                                            <div class="text-sm text-gray-500">chenxiaowen@example.com</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">135****3456</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-08-05</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">正常</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-blue-700 mr-3">详情</button>
                                    <button class="text-red-500 hover:text-red-700">封禁</button>
                                </td>
                            </tr>
                            <tr class="table-row">
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <input type="checkbox" class="h-4 w-4 text-primary rounded-button border-gray-300 focus:ring-primary">
                                        <span class="ml-2">10005</span>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <div class="flex items-center">
                                        <div class="flex-shrink-0 h-10 w-10 rounded-full bg-gray-200 flex items-center justify-center">
                                            <i class="fas fa-user w-5 h-5 text-gray-500"></i>
                                        </div>
                                        <div class="ml-4">
                                            <div class="text-sm font-medium text-gray-900">刘宇航</div>
                                            <div class="text-sm text-gray-500">liuyuhang@example.com</div>
                                        </div>
                                    </div>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">188****7890</td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm text-gray-500">2023-09-15</td>
                                <td class="px-6 py-4 whitespace-nowrap">
                                    <span class="px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800">正常</span>
                                </td>
                                <td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
                                    <button class="text-primary hover:text-blue-700 mr-3">详情</button>
                                    <button class="text-red-500 hover:text-red-700">封禁</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <!-- 分页 -->
                <div class="bg-white px-6 py-4 flex items-center justify-between border-t border-gray-200">
                    <div class="flex-1 flex justify-between sm:hidden">
                        <button class="relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-button text-gray-700 bg-white hover:bg-gray-50">上一页</button>
                        <button class="ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-button text-gray-700 bg-white hover:bg-gray-50">下一页</button>
                    </div>
                    <div class="hidden sm:flex-1 sm:flex sm:items-center sm:justify-between">
                        <div>
                            <p class="text-sm text-gray-700">
                                显示 <span class="font-medium">1</span> 到 <span class="font-medium">5</span> 条，共 <span class="font-medium">24</span> 条
                            </p>
                        </div>
                        <div>
                            <nav class="relative z-0 inline-flex rounded-button shadow-sm -space-x-px" aria-label="Pagination">
                                <button class="relative inline-flex items-center px-2 py-2 rounded-l-button border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                                    <span class="sr-only">上一页</span>
                                    <i class="fas fa-chevron-left w-4 h-4"></i>
                                </button>
                                <button aria-current="page" class="z-10 bg-primary border-primary text-white relative inline-flex items-center px-4 py-2 border text-sm font-medium">1</button>
                                <button class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">2</button>
                                <button class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">3</button>
                                <span class="relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700">...</span>
                                <button class="bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center px-4 py-2 border text-sm font-medium">5</button>
                                <button class="relative inline-flex items-center px-2 py-2 rounded-r-button border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
                                    <span class="sr-only">下一页</span>
                                    <i class="fas fa-chevron-right w-4 h-4"></i>
                                </button>
                            </nav>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>

    <script>
        // 切换导航菜单
        document.querySelectorAll('.sidebar-item').forEach(item => {
            item.addEventListener('click', function() {
                document.querySelectorAll('.sidebar-item').forEach(i => i.classList.remove('active'));
                this.classList.add('active');
                
                // 更新顶部标题
                const title = this.querySelector('span').textContent;
                document.querySelector('header div:first-child').textContent = title;
            });
        });

        // 表格全选功能
        const masterCheckbox = document.querySelector('thead input[type="checkbox"]');
        const rowCheckboxes = document.querySelectorAll('tbody input[type="checkbox"]');
        
        masterCheckbox.addEventListener('change', function() {
            rowCheckboxes.forEach(checkbox => {
                checkbox.checked = this.checked;
            });
        });

        // 模拟图表初始化
        if (typeof echarts !== 'undefined') {
            // 这里可以初始化统计报表页面的图表
        }
    </script>
</body>
</html>